package com.example.pufang.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@TableName(value = "pf_user")
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("用户表")
@Accessors(chain = true)
public class User implements Serializable {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "手机号码")
    private String phone;

    @ApiModelProperty(value = "真实名称")
    private String realName;

    @ApiModelProperty(value = "头像")
    private String logo;

    @ApiModelProperty(value = "余额")
    private BigDecimal money;

    @ApiModelProperty(value = "年龄")
    private Integer age;

    // 0代表未知，1代表男，2代表女
    @ApiModelProperty(value = "性别")
    private Integer sex;

    @ApiModelProperty(value = "注册时间")
    private Date createTime;

    @ApiModelProperty(value = "是否注销账户")
    private Boolean isDelete;

    @ApiModelProperty(value = "是否被封禁")
    private Boolean isBan;

}
